home *** CD-ROM | disk | FTP | other *** search
/ Sports Illustrated for Kids - Awesome Athletes! / Sports Illustrated for Kids - Awesome Athletes!.iso / iv.dir / 00052_credits enter.ls < prev    next >
Encoding:
Text File  |  1996-04-19  |  1.3 KB  |  39 lines

  1. on mouseUp
  2.   global givState, givCreditsCleanupFlag, givWhichText, givMAINMONITORSPRITE
  3.   set tmp to EMPTY
  4.   set tmp to the text of field "enter name"
  5.   if the number of chars in field "enter name" = 0 then
  6.     set the text of field "enter name" to " "
  7.   end if
  8.   repeat while the last char in tmp = " "
  9.     delete char the number of chars in tmp of tmp
  10.   end repeat
  11.   set the userName of givState to tmp
  12.   set tmp to EMPTY
  13.   set tmp to the text of field "enter title"
  14.   if the number of chars in field "enter title" = 0 then
  15.     set the text of field "enter title" to " "
  16.   end if
  17.   repeat while the last char in tmp = " "
  18.     delete char the number of chars in tmp of tmp
  19.   end repeat
  20.   set the userTitle of givState to tmp
  21.   set tmp to EMPTY
  22.   set tmp to the text of field "enter location"
  23.   if the number of chars in field "enter location" = 0 then
  24.     set the text of field "enter location" to " "
  25.   end if
  26.   repeat while the last char in tmp = " "
  27.     delete char the number of chars in tmp of tmp
  28.   end repeat
  29.   set the userLoc of givState to tmp
  30.   set givCreditsCleanupFlag to 1
  31.   set the keyDownScript to EMPTY
  32.   set the editableText of sprite givWhichText to 0
  33.   set the castNum of sprite givMAINMONITORSPRITE to the number of cast "MainMonitorCast"
  34.   puppetSprite(24, 0)
  35.   puppetSprite(25, 0)
  36.   puppetSprite(26, 0)
  37.   go("ivMain")
  38. end
  39.